package cn.hairui.blog.service;

import cn.hairui.blog.dao.SRescManageMapper;
import cn.hairui.blog.entity.SRescManage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author laoganbu
 * @since 2020-04-08
 */
@Service
public class SRescManageServiceImpl extends ServiceImpl<SRescManageMapper, SRescManage> implements SRescManageService {

    @Autowired
    private SRescManageMapper sRescManageMapper;

    @Override
    public List<SRescManage> selectByUseFlagOrder(String showFlag) {
        return sRescManageMapper.selectByUseFlagOrder(showFlag);
    }

    @Override
    public List<Map> list() {
        return sRescManageMapper.list();
    }

    @Override
    public SRescManage getByRescId(String rescId) {
        return sRescManageMapper.getByRescId(rescId);
    }
}
